#ifndef TIMERSERVICE_H
#define TIMERSERVICE_H

#include "core_global.h"
#include <boost/noncopyable.hpp>
#include <boost/asio/deadline_timer.hpp>

class AsyncService;

class TimerService : protected boost::noncopyable
{
public:
    TimerService(AsyncService &service);
    ~TimerService();

    bool setTimer(unsigned int owner, unsigned int id, unsigned long msec, unsigned int repeat);
    bool killTimer(unsigned int owner, unsigned int id);

private:
    AsyncService &m_service;
};

#endif // TIMERSERVICE_H
